package module.modbus.rtu;

/**
 * @author bingo
 * @Description
 * @Date 2018/8/23
 */
public class Main {

    public static void main(String[] args) {
        RtuStartThread rtuStartThread = new RtuStartThread();
        RtuStopThread  rtuStopThread = new RtuStopThread(rtuStartThread.getSerialPortRtu());

        Thread startThread = new Thread(rtuStartThread);
        Thread stopThread = new Thread(rtuStopThread);

        startThread.start();
       // stopThread.start();

        //System.out.println("线程总数:"+Thread.activeCount());
       //
        // C2A3F8B7 85
      //   ‭1 1000010‬‭1      01000 11‬‭111 11000 10110111
        //                  2    678910 11 12 16 18 19 21 22 23
        //
        //
        // ‬

    }
    //     1/2+1/6+1/7+1/8+


}

